package com.settlement.system.common.enums;

/**
 * 全局生成序号枚举
 *
 * @author hc
 * @since 2022/4/7
 */
public enum GenRedisKeyEnum implements Code<String>{

    /**推送nc凭证流水号生成规则*/SERIAL_NO("retail:acs:nc:serial","ACS"),
    /**推送nc凭证订单号生成规则*/ORDER_NO("retail:acs:nc:order","ACS");


    private final String key;
    private final String prefix;

    public String getPrefix(){
        return prefix;
    }
    public String getKey(){
        return key;
    }
    GenRedisKeyEnum(String key, String prefix) {
        this.key = key;
        this.prefix = prefix;
    }


    @Override
    public String code() {
        return key;
    }
}
